package com.yk.framework.gui.list;

import java.util.ArrayList;
import java.util.List;

public class TableColumnBeanManager {
	private List<TableColumnBean> allList;

	private List<TableColumnBean> showList;

	private List<TableColumnBean> hideList;

	public TableColumnBeanManager() {
		allList = new ArrayList<TableColumnBean>();
		showList = new ArrayList<TableColumnBean>();
		hideList = new ArrayList<TableColumnBean>();
	}

	public void add(TableColumnBean tableColumnBean) {
		allList.add(tableColumnBean);
		if ("true".equalsIgnoreCase(tableColumnBean.getIsVisible())) {
			showList.add(tableColumnBean);
		} else {
			hideList.add(tableColumnBean);
		}
	}
	
	public TableColumnBean getAllListElement(int index){
		return allList.get(index);
	}
	
	public TableColumnBean getHideListElement(int index){
		return hideList.get(index);
	}
	
	public TableColumnBean getShowListElement(int index){
		return showList.get(index);
	}
	
	public int allSize(){
		return allList.size();
	}
	
	public int hideSize(){
		return hideList.size();
	}
	
	public int showSize(){
		return showList.size();
	}

	public List<TableColumnBean> getAllList() {
		return allList;
	}

	public void setAllList(List<TableColumnBean> allList) {
		this.allList = allList;
	}

	public List<TableColumnBean> getShowList() {
		return showList;
	}

	public List<TableColumnBean> getHideList() {
		return hideList;
	}

}
